/*
 * @Descripttion: 角色接口
 * @version:
 * @Author: cxguo
 * @Date: 2019-08-02 15:03:05
 * @LastEditors: cxguo
 * @LastEditTime: 2019-09-30 14:48:05
 */
import axios from '@/utils/request'
const baseUrl = '/admin/role-controller'

export function saveData(params) {
  return axios.request({
    url: `${baseUrl}/savedata`,
    method: 'post',
    data: params
  })
}

export function delData(params) {
  return axios.request({
    url: `${baseUrl}/del-listdata`,
    method: 'post',
    data: params
  })
}

export function updatePermissionsdata(params) {
  return axios.request({
    url: `${baseUrl}/update-permissionsdata`,
    method: 'post',
    data: params
  })
}

export function listData(params) {
  return axios.request({
    url: `${baseUrl}/listdata`,
    method: 'post',
    data: params
  })
}
